package com.yonyou.pmclouds.basecom.conf;

import org.springframework.core.Ordered;

/**
 * 过滤器级次定义，按照1st、2nd次序加载
 * <br>每个级次预留了100个空余空间，进行微调
 *
 * @author mapeif
 */
public interface FilterLevelConst {
    /**
     * 级次1的filter主要用来认证和上下文初始化，此级次的filter严禁出现对上下文依赖，允许对上下文的操作
     */
    int LEVEL_FIRST = Ordered.HIGHEST_PRECEDENCE + 10;
    int LEVEL_SECOND = LEVEL_FIRST + 100;
    int LEVEL_THIRD = LEVEL_SECOND + 100;
    int LEVEL_FORTH = LEVEL_THIRD + 100;
    int LEVEL_LAST = Ordered.LOWEST_PRECEDENCE - 100;

}
